import Decimal from 'decimal.js';

export function util_Decimal_Add(a: number, b: number): string {
  const result = new Decimal(a).plus(new Decimal(b));
  return result.toString();
}

export function util_Decimal_Subtract(a: number, b: number): string {
  const result = new Decimal(a).minus(new Decimal(b));
  return result.toString();
}

export function util_Decimal_Multiply(a: number, b: number): string {
  const result = new Decimal(a).times(new Decimal(b));
  return result.toString();
}

export function util_Decimal_Divide(a: number, b: number): string {
  const result = new Decimal(a).div(new Decimal(b));
  return result.toString();
}
